/**
 * Copyright 2018-2020 Streamlit Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@import "src/assets/css/variables";

.reportview-container {
  .dataframe {
    font-size: 0.8rem;
    font-family: "IBM Plex Mono", monospace;
    text-align: right;
    padding: 0.5rem;
    line-height: 1;
  }

  .dataframe-container {
    border: 1px solid $gray-lightest;
    box-sizing: content-box; /* Fix borders going under other elements. */
  }

  .dataframe.row-header,
  .dataframe.col-header,
  .dataframe.corner {
    background-color: $gray-lightest;
    color: #768096;
    z-index: 1;
  }

  .dataframe.row-header,
  .dataframe.col-header {
    /* Row headers are click-to-sort, so we make the text unselectable.
      Column headers are also unselectable, so that clicking to sort the
      column's row header doesn't result in the entire column being selected */
    user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-select: none;
  }

  .dataframe.row-header,
  .dataframe.col-header,
  .dataframe.data {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 0.75; /** For vertical centering. */
  }

  .fixup {
    position: absolute;
  }

  .fixup-top-right {
    top: 0px;
    right: 0px;
  }

  .fixup-bottom-left {
    bottom: 0px;
    left: 0px;
  }

  .table-top-right {
    overflow-x: hidden !important;
    background-color: $gray-lightest;
  }

  .table-bottom-left {
    overflow-y: hidden !important;
    background-color: $gray-lightest;
  }

  .empty-dataframe {
    font-family: "IBM Plex Mono", monospace;
    color: #768096;
    font-style: italic;
    font-size: 0.8rem;
    text-align: center;
  }

  .sort-arrow-icon {
    font-size: 0.5rem;
    margin-right: 0.25rem;
    opacity: 0.3;
    vertical-align: top;
  }
}
